# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: markochk <markochk@proton.me>
pkgname=device-huawei-berlin
pkgdesc="Huawei Honor 6X"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-huawei-berlin
	mkbootimg
	msm-fb-refresher
	postmarketos-base
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-huawei-berlin hisi-wlan"
	mkdir "$subpkgdir"
}

sha512sums="
10ee185580a1032f076d740a34861773c47a4d8202933a04bffe5d5344c78a1513cfd0d32b9e8b0dd722915ce42b1f1c7925a688c1cfeaaff241bd63c7295263  deviceinfo
"
